package com.lzdongrui.backend.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lzdongrui.common.annotation.Excel;
import com.lzdongrui.common.core.domain.BaseEntity;

/**
 * 班级对象 grade
 *
 * @author wyh
 * @date 2023-05-05
 */
public class Grade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 班级代码 */
    @Excel(name = "班级代码")
    private String gradeCode;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String name;

    /** 学年 */
    @Excel(name = "学年")
    private Integer schoolYear;

    /** 专业id */
    private Long majorId;

    /** 操作人 */
    private Long operator;

    /** 该班级是否已毕业 */
    @Excel(name = "该班级是否已毕业")
    private Integer isFinishSchool;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGradeCode(String gradeCode)
    {
        this.gradeCode = gradeCode;
    }

    public String getGradeCode()
    {
        return gradeCode;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSchoolYear(Integer schoolYear)
    {
        this.schoolYear = schoolYear;
    }

    public Integer getSchoolYear()
    {
        return schoolYear;
    }
    public void setMajorId(Long majorId)
    {
        this.majorId = majorId;
    }

    public Long getMajorId()
    {
        return majorId;
    }
    public void setOperator(Long operator)
    {
        this.operator = operator;
    }

    public Long getOperator()
    {
        return operator;
    }

    public void setIsFinishSchool(Integer isFinishSchool)
    {
        this.isFinishSchool = isFinishSchool;
    }

    public Integer getIsFinishSchool()
    {
        return isFinishSchool;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("gradeCode", getGradeCode())
                .append("name", getName())
                .append("schoolYear", getSchoolYear())
                .append("majorId", getMajorId())
                .append("operator", getOperator())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("isFinishSchool", getIsFinishSchool())
                .toString();
    }
}
